package com.dongpl.module.sysLog.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dongpl.module.sysLog.dao.SysLogMapper;
import com.dongpl.module.sysLog.entity.SysLog;
import com.dongpl.module.sysLog.service.SysLogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 系统日志业务实现层
 * @author Administrator
 */
@Service
public class SysLogServiceImpl implements SysLogService {

    @Resource
    private SysLogMapper sysLogMapper;


    @Override
    public Page<SysLog> getList(Page<SysLog> page) {
        return sysLogMapper.selectPage(page, new QueryWrapper<>());
    }

    @Override
    public void save(SysLog sysLog) {
        sysLogMapper.insert(sysLog);
    }

}
